﻿* Encoding: UTF-8.
* Hierarchical regression analyses GROUP #2 = UTATE 18 months and CBCL 6 years.

*Select variables without missings for centering UTATE and CBCL variables.
COUNT
  nomisUTATECBCL= Group M2_UTATEnew_Orienting M2_UTATEnew_Alerting M2_UTATEnew_Executive M5_mdr_CBCL_AttP_T (MISSING).
FREQUENCIES
  VARIABLES=nomisUTATECBCL
  /ORDER=  ANALYSIS.
EXECUTE.

USE ALL.
COMPUTE filter_$=(nomisUTATECBCL eq 0).
VARIABLE LABEL filter_$ 'nomisUTATECBCL eq 0 (FILTER)'.
VALUE LABELS filter_$  0 'Not Selected' 1 'Selected'.
FORMAT filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE .

DESCRIPTIVES
  VARIABLES=Group M2_UTATEnew_Orienting M2_UTATEnew_Alerting M2_UTATEnew_Executive M5_mdr_CBCL_Int_Tscore
  /STATISTICS=MEAN STDDEV MIN MAX .
EXECUTE.

*Center variables.
COMPUTE c2M2_Orienting = M2_UTATEnew_Orienting - .0082.
EXECUTE .
COMPUTE c2M2_Alerting = M2_UTATEnew_Alerting - .0202.
EXECUTE .
COMPUTE c2M2_Executive = M2_UTATEnew_Executive - .0032.
EXECUTE .

*Compute interaction variables.
COMPUTE i2GroupM2Orienting = c2M2_Orienting * Group .
EXECUTE .
COMPUTE i2GroupM2Alerting = c2M2_Alerting * Group .
EXECUTE .
COMPUTE i2GroupM2Executive = c2M2_Executive * Group .
EXECUTE .


*Regression analysis UTATE & Attention Problems
Step 1 (enter maternal education & group)
Step 2 (enter centered variables) 
Step 3 (enter interaction variables).
REGRESSION
  /descriptives cor
  /MISSING LISTWISE
  /STATISTICS COEFF CI(95)OUTS R ANOVA BCOV CHANGE collin tol
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN
  /DEPENDENT M5_mdr_CBCL_AttP_T
/METHOD=ENTER Maternal_education Group
 /METHOD=ENTER c2M2_Orienting c2M2_Alerting c2M2_Executive
/METHOD=ENTER i2GroupM2Orienting i2GroupM2Alerting i2GroupM2Executive.